<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        //利用new创建数组
        // var arr =new Array();//创建一个空的数组
        //利用数字字面量创建数组[]
        var arr1 =[1,2,'li love yourself',true];
        //数组里面的数据要用逗号分隔
        alert(arr1);
        alert(arr1[2]);
    </script>
</head>
<body>
    
</body>
</html>